package com.wbpay.sdk.pay;

import android.content.Context;

import com.wbpay.sdk.framework.IPayFunction;
import com.wbpay.sdk.params.PayParams;

/**
 * 具体支付相关功能
 */

public interface IPay {

    /**
     * 定义阿里支付
     */
    public static final int PAY_TYPE_ALIPAY = 1;

    /**
     * 威富通
     */
    public static final int PAY_TYPE_SWIFT = 2;

    /**
     * 定义微信支付
     */
    public static final int PAY_TYPE_WECHATPAY = 10002;

    /**
     * 定义微信支付
     */
    public static final int PAY_TYPE_WXPLUGINPAY = 10003;

    /**
     * 易宝
     */
    public static final int PAY_TYPE_YEE_PAY = 10005;

    /**
     * 聚宝云
     */
    public static final int PAY_TYPE_JUBAO_PAY = 10006;

    public void init(Context context, IPayFunction f);

    /**
     * 传递支付参数支付
     *
     * @param payParams
     */
    public void pay(PayParams payParams);

    public String getPayName();

    public int getPayType();

    /**
     * 检查支付插件是否可用
     *
     * @return
     */
    public boolean checkPayAvailable();

    public int getPayIcon();

    public String getPayDesc();
}
